package com.ihm.labyrinth.song;

import com.ihm.labyrinth.R;

import android.app.Activity;
import android.media.MediaPlayer;

public class PlaySong {

	Activity activity;
	MediaPlayer songWin, songLost;
	
	public PlaySong(Activity activityIn){
		this.activity = activityIn;
	}
	
	//son lorsque on a ganger
	public void playSongWin(){
		this.songWin = MediaPlayer.create(this.activity, R.raw.win);
		this.songWin.start();
	}
	
	//son lorsque on a perdu
	public void playSongLost(){
		this.songLost = MediaPlayer.create(this.activity, R.raw.lost);
		this.songLost.start();
	}
}
